package ca.llsutherland.squash;

import java.util.Calendar;

import junit.framework.TestCase;
import ca.llsutherland.squash.bootstrap.Bootstrapper;
import ca.llsutherland.squash.database.TestCleanupListener;
import ca.llsutherland.squash.domain.Clock;
import ca.llsutherland.squash.persistence.DatabaseConnectionManager;


public class SquashLadderTestCase extends TestCase{

    protected static final Clock TEST_DATE_CREATED = new Clock(2010, Calendar.JANUARY, Calendar.MONDAY, 15, 1, 3);
    protected static final String TEST_CLUB_NAME = "Fifth Ave. Club";
    protected static final String TEST_PASSWORD = "MyPAssword";
    
    TestCleanupListener cleanupListener;
    
    @Override
    protected void setUp() throws Exception {
        Bootstrapper.bootstrap();
    }

    @Override
    protected void tearDown() throws Exception {
        //clean up after the tests
        DatabaseConnectionManager.getInstance().deleteNewDomainObjects();
    }

}
